<template>
	<view>
		<uni-card v-for="(item,index) in reactive">
			<view style="color: #E43D33;">岗位名称:{{item.postName}}</view>
			<view>公司名称:{{item.companyName}}</view>
			<view>薪资待遇:{{item.money}}元</view>
			<view>投递简历时间:{{item.satrTime}}</view>
		</uni-card>
		<view style="height: 20vh;"></view>
		
		
		<uni-group style="position: fixed;right: 0%;left: 0%;bottom: 0%;z-index: 99;">
			<view class="u-flex">
				<view @click="tttindex1()" style="width: 33.33%;padding: 20rpx;text-align: center;border: 1px solid black;">找工作</view>
				<view style="width: 33.33%;padding: 20rpx;text-align: center;color: #007AFF;border: 1px solid black;">投递历史</view>
				<view @click="tttindex2()" style="width: 33.33%;padding: 20rpx;text-align: center;border: 1px solid black;">个人简历</view>
				
			</view>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				reactive:[],
				indo:[],
			}
		},
		onLoad() {
			this.getlis()
			this.getinfo()
		},
		methods: {
			getinfo() {
				this.$get(this.base + '/prod-api/api/common/user/getInfo').then((res) => {
					this.indo = res.user
					console.log(res.user)
				})
			},
			getlis(){
				this.$get(this.base+'/prod-api/api/job/deliver/list').then((res)=>{	
					res.rows.forEach((item)=>{
						if(item.userId == this.indo.userId){
							this.reactive.push(item)
						}
					})
				})
			},
			tttindex1() {
				uni.navigateTo({
					url: 'index'
				})
			},
			tttindex2() {
				uni.navigateTo({
					url: 'user'
				})
			},
		}
	}
</script>

<style>

</style>
